﻿<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>

<%@ include file="/WEB-INF/pages/_common/taglibs.jsp" %>
<%@ include file="/WEB-INF/pages/_common/init.jsp" %>

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<html>
	<head>
		<title><fmt:message key="contact.page.title" /></title>
	</head>
	<body id="index">
		<div id="portal-content">
			<div id="page-header-title">
				<fmt:message key="contact.page-header-title" />
			</div>
			<div>
			<form:form action="contact" modelAttribute="contactForm">
			<table>
				<tr>
					<td class="formLabel"><fmt:message key="form.firstname" /></td>
					<td><form:input path="firstname" class="formInput"/></td>
				</tr>
				<tr>
					<td class="formLabel"><fmt:message key="form.lastname" /></td>
					<td><form:input path="lastname" class="formInput"/></td>
				</tr>
				<tr>
					<td class="formLabel"><fmt:message key="form.country" /></td>
					<td>
						<form:select path="countryCode" id="countryCode" class="formSelect">
							<form:option value="0" label="--" />	
							<form:options  items="${countries}" itemLabel="value" itemValue="key" />
						</form:select>
					</td>
				</tr>
				<tr>
					<td class="formLabel"><fmt:message key="form.email" /></td>
					<td><form:input path="email" class="formInput"/></td>
				</tr>
				<tr>
					<td class="formLabel"><fmt:message key="form.phone" /></td>
					<td><form:input path="phone" class="formInput"/></td>
				</tr>
				<tr>
					<td class="formLabel"><fmt:message key="form.fax" /></td>
					<td><form:input path="fax" class="formInput"/></td>
				</tr>
				<tr>
					<td class="formLabel"><fmt:message key="form.mobile" /></td>
					<td><form:input path="mobile" class="formInput"/></td>
				</tr>
				<tr>
					<td class="formLabel"><fmt:message key="form.website" /></td>
					<td><form:input path="website" class="formInput"/></td>
				</tr>
				<tr>
					<td class="formLabel"><fmt:message key="form.subject" /></td>
					<td><form:input path="subject" class="formInput"/></td>
				</tr>
				<tr>
					<td class="formLabel"><fmt:message key="form.message" /></td>
					<td><form:textarea path="message" rows="7" cols="47" /></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="<fmt:message key="form.send" />" /></td>
				</tr>
			</table>
			</form:form>
			</div>
		</div>
	</body>
</html>